import request from '@/utils/request'

// 查询获得成就列表
export function listUserAchievements(query) {
  return request({
    url: '/reminders/UserAchievements/list',
    method: 'get',
    params: query
  })
}

// 查询获得成就详细
export function getUserAchievements(id) {
  return request({
    url: '/reminders/UserAchievements/' + id,
    method: 'get'
  })
}

// 新增获得成就
export function addUserAchievements(data) {
  return request({
    url: '/reminders/UserAchievements',
    method: 'post',
    data: data
  })
}

// 修改获得成就
export function updateUserAchievements(data) {
  return request({
    url: '/reminders/UserAchievements',
    method: 'put',
    data: data
  })
}

// 删除获得成就
export function delUserAchievements(id) {
  return request({
    url: '/reminders/UserAchievements/' + id,
    method: 'delete'
  })
}
